package com.zh;

import com.zh.transport.Aircraft;
import com.zh.transport.Submarine;
import com.zh.transport.Train;

public class Main {

    public static void main(String[] args) {
	// write your code here
        Person langhua = new Person("浪花哥");
        Train train1 = new Train("火车一号");
        Aircraft aircraft1 = new Aircraft("飞机一号");
        Submarine submarine1 = new Submarine("潜艇一号");
        langhua.driveTransport(train1);
        System.out.println();
        langhua.driveTransport(aircraft1);
        System.out.println();
        langhua.driveTransport(submarine1);
    }
}
